package com.drojian.screenAdaptation;

import android.os.Bundle;
import android.widget.TextView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import com.drojian.demo.R;

public class ScreenTestActivity extends AppCompatActivity {
    private TextView tv1,tv2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.part4_activity_screen_test);
        tv1 = findViewById(R.id.tv1);
        tv2 = findViewById(R.id.tv2);
        ViewCalculateUtil.setViewLinearLayoutParam(tv1,800,100,110,110,101,110);
        ViewCalculateUtil.setViewLinearLayoutParam(tv2,400,300,0,0,0,0);
    }
}